//
//  YYTableCell.swift
//  YYProject
//
//  Created by 陆文宇 on 2017/8/28.
//  Copyright © 2017年 陆文宇. All rights reserved.
//

import UIKit

class YYTableCell: UITableViewCell {
    
    static func yy_register(tableView: UITableView) {
        tableView.register(UINib(nibName: "\(self)", bundle: nil), forCellReuseIdentifier: "\(self)")
    }
    
    static func yy_dequeueReusableCell(tableView: UITableView, indexPath: IndexPath) -> YYTableCell {
        return tableView.dequeueReusableCell(withIdentifier: "\(self)", for: indexPath) as! YYTableCell
    }
    
    var yy_model: YYModel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
